var row1 = creTab.insertRow(creTab.rows.length);
	row1.align='center';
	r1c1.height='30';
		
		var r1c1 = row1.insertCell(0);
		r1c1.width='17%';
			var r1c0el = document.createElement('input');
			r1c0el.type = 'text';
			r1c0el.name = 'txtEle';
			r1c0el.id = 'txtEleId';
			r1c0el.value = '';
			r1c0el.size = 10;
			r1c0el.maxLength = 6;					
			addListener(r1c0el, 'keypress', alertMe, false);
			//r1c0el.attachEvent('onKeyPress' , alertMe);
		r1c1.appendChild(r1c0el);

			var r1c1el = document.createElement('input');
			r1c1el.type = 'checkbox';
			r1c1el.name = 'chkEle';
			r1c1el.value = 'r1c1el';
			r1c1el.defaultChecked = true; // in IE r1c1el.checked = true; is not working 


			var r1c2el = document.createElement('select');
			r1c2el.name = 'selEle';
			r1c2el.options[r1c2el.length] = new Option('--Select--', 'none');
			r1c2el.options[r1c2el.length] = new Option('text zero', 'value0');
			r1c2el.options[1].selected = true;
			r1c2el.options[r1c2el.length] = new Option('text one', 'value1');
			

			var r1c3e1 = document.createElement('textarea');
			r1c3e1.name = 'txtAreaEle';
			r1c3e1.rows = 3;
			r1c3e1.cols = 20;


			var r1c4e2 = document.createElement('input');
			r1c4e2.type = 'radio';
			r1c4e2.name = 'radioEle';
			r1c4e2.defaultChecked = true; //// its defaultChecked


			var r1c5e1 = document.createTextNode('Virtialar Information');
			r1c5.className = 'textArea'; /// important not class; its className


==================================================================================

onclick="document.all.v.style.visibility= document.all.v.style.visibility=='hidden' ? '' : 'hidden'">Click
style="visibility: hidden"

onclick="document.all.d.style.display= document.all.d.style.display=='none' ? '' : 'none'"
style="display: none"


===================================================================================


<script language="JavaScript">
function function1() {
    var p = document.getElementsByTagName("P");
    alert(p.length); 
	p[1].style.display='none';
} 
function function2() {
    var p = document.getElementsByTagName("P");
    alert(p.length); 
	p[3].style.visibility='hidden';
} 
function function3() {
    var p = document.getElementsByTagName("P");
    alert(p.length); 
	p[0].style.color='red';
} 
</script>
<input type="button" value="display:none" onClick="function1();">
<input type="button" value="visibility:none" onClick="function2();">
<input type="button" value="color red" onClick="function3();">
<input type="button" value="color red" onClick="function4();">
<p>this is parag 0</p>
<p>this is parag 1</p>
<p>this is parag 2</p>
<p>this is parag 3</p>
<p>this is parag 4</p>

=================================================================================

location.href='http://www.microsoft.com/';


==================================================================================

function trimAll(sString) 
{
	while (sString.substring(0,1) == ' '){
		sString = sString.substring(1, sString.length);
	}
	while (sString.substring(sString.length-1, sString.length) == ' '){
		sString = sString.substring(0,sString.length-1);
	}
	return sString;
}


===============================================================================

if(radioObj[i].checked) {
	return radioObj[i].value;
}

===============================================================================

document.frmTest.CHKBOX_1.checked == false &&
document.frmTest.CHKBOX_2.checked == false &&
document.frmTest.CHKBOX_3.checked == false

================================================================================


select options


while(ObjectID.length>0){
	ObjectID.removeChild(ObjectID.options[0]);				
}

ObjectID.options[ObjectID.length] = new Option(name, value);	

ObjectID[index].selected = "1";


================================================================================

sampleTable.deleteRow(rowCount-1);


====================================================================================


function openUserCredentials(){
	var url='popup.htm';
	var properties = 'height=400,width=800,toolbar=no,resizable=no,menubar=no,status=yes';
	var mywindow = window.open(url, 'UserCredentials', properties);
	//mywindow.moveTo(0,0);
	//mywindow.document.write('<H1>Popup Test!</H1>');
	mywindow.target = "_parent";

}



==================================================================================


alert(navigator.userAgent);
	alert(navigator.appVersion);
	alert(navigator.appName);

if (navigator.userAgent.indexOf('MSIE') !=-1){
	//do something for Explorer
}


==================================================================================================


function clone(o){
	var c={};
	for (p in o){
		if (typeof (o[p]== "object")){
			c[p]=new clone(o[p]);
		}
		else{
			c[p]=o[p];
		}
	}
	return c;
}


===================================================================================
